

#import <UIKit/UIKit.h>
#import "VPTBarBtnInterface.h"

@protocol VPTabBarDelegate <NSObject>
@optional
-(void) doubleClickedAtIndex:(NSInteger) index;
@required
-(void) selectBarBtnAtIndex:(NSInteger) index;
@end


#pragma mark ---

@interface VPTabBar : UIView

@property(nonatomic,strong) UIImage                 *bgImage;
@property(nonatomic,weak)   id<VPTabBarDelegate>    mydelegate;
@property(nonatomic,strong,readonly) NSArray *btnList;

-(id)   initWithPosY:(CGFloat) ypos btnList:(NSArray*) btnlist;
-(void) initMyContent;

- (void)selectTabAtIndex:(NSInteger)index;


@end
